<!DOCTYPE html>
<html>

<head>
  <title>Bootstrap 实例</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
  <link rel="stylesheet" href="CSS/heop2.css">
</head>

<body>
  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
    打开模态框
  </button>
  <div class="container">

    <!-- 按钮：用于打开模态框 -->


    <!-- 模态框 -->
    <div class="modal fade " id="myModal">

      <div class="modal-dialog modal-lg ">
        <div class="modal-content  ">

          <!-- 模态框头部 -->
          <div class="modal-header">
            <h4 class="modal-title">新建用户</h4>
            <button type="button" class="close" data-dismiss="modal">&times;</button>
          </div>

          <!-- 模态框主体 -->
          <div class="modal-body">
            <div class="containe  " style="padding-left: 20px;">
              <form class="form-horizontal " role="form">
                <div class="form-group  row " >
                  <label for="firstname" class="col-sm-0  control-label   ">名字</label>
                  <div class="col-sm-5 ">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入名字">
                  </div>
                  <label for="firstname" class="col-sm-0 control-label">账号</label>
                  <div class="col-sm-5">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入账号">
                  </div>
                </div>
                <div class="form-group  row">
                  <label for="lastname" class="col-sm-0 control-label">密码</label>
                  <div class="col-sm-5">
                    <input type="password" class="form-control" id="lastname" placeholder="请输密码">
                  </div>
                  <label for="lastname" class="col-sm-0 control-label">重复密码</label>
                  <div class="col-sm-5">
                    <input type="password" class="form-control" id="lastname" placeholder="请重复输入密码">
                  </div>
                </div>
                <div class="form-group">
                  <div class="col-sm-offset-2 col-sm-10">
                    <div class="cradio row">
                      <label>
                        <input type="radio" name="radio">组织机构
                        <select name="" id="">
                          <optgroup label="南海区"></optgroup>
                        </select>
                      </label>
                    </div>
                  </div>
                </div>
                <div class="form-group">
                  <div class="col-sm-offset-2 col-sm-10">
                    <div class="cradio row">
                      <label>
                        <input type="radio" name="radio">选择镇街
                        <select name="" id="">
                          <option value="测试街道"></option>
                        </select>
                        选择村居
                        <select name="" id="">
                          <option value="测试街道"></option>
                        </select>
                      </label>
                    </div>
                  </div>
                </div>
                <div class="form-group  row " >
                  <label for="firstname" class="col-sm-0  control-label   ">手机号</label>
                  <div class="col-sm-10 ">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入手机号">
                  </div>
                </div>
                <div class="form-group  row " >
                  <label for="firstname" class="col-sm-0  control-label  ">身份证</label>
                  <div class="col-sm-10 ">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入身份证">
                  </div>
                </div>
                <div class="form-group">
                  <div class="col-sm-offset-2 col-sm-10">
                    <div class="cradio row">
                      <label>
                        <input type="radio" name="radio">身份等级
                        <select name="" id="">
                          <option value="区管理"></option>
                        </select>
                        角色
                        <select name="" id="">
                          <option value="测试街道"></option>
                        </select>
                      </label>
                    </div>
                  </div>
                </div>
                
            
                <div class="form-group">
                  <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default " style="background-color: blue; width: 80px; text-align: left; ">保存</button>
                  </div>
                </div>
              </form>
            </div>
          </div>

          <!-- 模态框底部 -->
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
          </div>

        </div>
      </div>
    </div>

  </div>

</body>

</html>